><

<csactionclass>



The <csactionclass> tag identifies the action by creating a class object which Adobe GoLive loads at start-up. When Adobe GoLive launches, it searches the actions folder for all class objects so that it can display them in the Action pop-up menu. You must use an opening and closing <csactionclass> tag in order for the action to register properly. This tag is not optional.

The <csactionclass> tag has four attributes, plus a fifth one used with Adobe GoLive 4.0 and later. Clicking on the tag will reveal its attributes in the Inspector:

  • NAME: The name which appears in the Action menu.
  • FUNCTION: The name of the JavaScript function which will be called when the action is triggered. The name is arbitrary but must correspond to the function name in the JavaScript code. In this example, the JavaScript function is CSOpenAlert(), the function which will initiate the Alert box. Note that you do not include the parentheses here.
  • NSVERSION: Supported version number of the Netscape browser. You determine the lowest supported browser version number and enter it here. The number is used by the BrowserSwitch script and also displayed in the Actions Inspector.
  • IEVERSION: Supported version number of the Internet Explorer browser. You determine the lowest supported browser version number and enter it here. The number is used by the BrowserSwitch script and also displayed in the Actions Inspector.
  • ACTIONTYPE: Identifies the type of Action based on the number value for this attribute. This tag is not included in this particular example file.

  • You can use three action types:

  • Standard Action (type 1).
  • Action Container (type 2), which is an Action which does nothing on its own, but only points to other actions.
  • Condition Action (type 3), which returns a value of TRUE or FALSE.

  • Adobe GoLive uses the ACTIONTYPE to enable/disable menu items in the actions menu. The Condition menu only displays Condition Actions. The main action menu displays only standard actions and action containers. Action menus which are included in a "GLActionConditionParam" or "GLActionGroupParam" only display standard actions to avoid nested actions. An action which contains a "GLActionGroupParam" or "GLActionConditionParam" must be set to "ACTIONTYPE = 2" (action container attribute) to work correctly.

    If an ACTIONTYPE is not defined (as in this case), Adobe GoLive will handle the action as a Standard Action type.


    Creating Actions > Creating your own actions > <csactionclass>